/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package commands;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;



/**
 *
 * @author trinimar
 */
public class mainCommands {


    public static void readFile(String file){
        try {
            FileReader fr;
            BufferedReader bf;
            String line = "";

            fr = new FileReader(file);
            bf = new BufferedReader(fr);
            
            LineNumberReader lr = new LineNumberReader(fr);
            while ((line = bf.readLine())!=null) {
                System.out.print(line+"\n");
                System.out.print(lr.getLineNumber()+"\n");
            }

        } catch (IOException ex) {
            ex.printStackTrace();
        }
    }


    public static void main(String[] args) throws FileNotFoundException{
//        dcliComandos.readCommandsFromFile("azul.txt", System.getProperty("user.dir"));
//        System.out.println();
//        dcliComandos.ldir("/home/ylopez/Desktop");
//        System.out.println();
//        dcliComandos.cat("/home/ylopez/Desktop", "Correccionesdecarlos");
    }

}
